<?php

namespace App\Models;

use Dcat\Admin\Traits\HasDateTimeFormatter;

use Illuminate\Database\Eloquent\Model;

class CaseBatch extends Model
{
	use HasDateTimeFormatter;
    protected $table = 'case_batchs';
    protected $fillable = ['number'];

    public function caseCustomer()
    {
        return $this->belongsTo(CaseCustomer::class);
    }

    public function caseContract()
    {
        return $this->belongsTo(CaseContract::class);
    }

    public function caseCases()
    {
        return $this->hasMany(CaseCase::class);
    }
}
